<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Language" content="zh-CN"><link href="stylesheet.css" media="all" rel="stylesheet" type="text/css">
<title>短选项</title>
<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?d286c55b63a3c54a1e43d10d4c203e75"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script>
</head><body class="SECT1">
<div>
<table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><th colspan="5" align="center" valign="bottom">PostgreSQL 8.2.3 中文文档</th></tr>
<tr><td width="10%" align="left" valign="top"><a href="runtime-config-developer.html" accesskey="P">后退</a></td><td width="10%" align="left" valign="top"><a href="runtime-config.html">快退</a></td><td width="60%" align="center" valign="bottom">章17. 服务器配置</td><td width="10%" align="right" valign="top"><a href="runtime-config.html">快进</a></td><td width="10%" align="right" valign="top"><a href="user-manag.html" accesskey="N">前进</a></td></tr>
</table>
<hr align="LEFT" width="100%"></div>
<div class="SECT1"><h1 class="SECT1"><a name="RUNTIME-CONFIG-SHORT">17.16. 短选项</a></h1>
<p>为了方便起见，这里还为一些参数提供了好多单字母命令行选项开关。它们在下面的<a href="runtime-config-short.html#RUNTIME-CONFIG-SHORT-TABLE">表17-1</a>里描述。其中一些选项仅仅是因为历史原因而存在的，尽管它们是单字母选项，但是并不表示它们很常用。</p>
<div class="TABLE"><a name="RUNTIME-CONFIG-SHORT-TABLE"></a>
<p><b>表17-1. 短选项键字</b></p>
<table border="1" class="CALSTABLE"><col><col>
<thead>
<tr><th>短选项</th><th>等效</th></tr>
</thead>
<tbody>
<tr><td><tt class="OPTION">-A <tt class="REPLACEABLE"><i>x</i></tt></tt></td><td><tt class="LITERAL">debug_assertions = <tt class="REPLACEABLE"><i>x</i></tt></tt></td></tr>
<tr><td><tt class="OPTION">-B <tt class="REPLACEABLE"><i>x</i></tt></tt></td><td><tt class="LITERAL">shared_buffers = <tt class="REPLACEABLE"><i>x</i></tt></tt></td></tr>
<tr><td><tt class="OPTION">-d <tt class="REPLACEABLE"><i>x</i></tt></tt></td><td><tt class="LITERAL">log_min_messages = DEBUG<tt class="REPLACEABLE"><i>x</i></tt></tt></td></tr>
<tr><td><tt class="OPTION">-e</tt></td><td><tt class="LITERAL">datestyle = euro</tt></td></tr>
<tr><td><tt class="OPTION">-fb</tt>, <tt class="OPTION">-fh</tt>, <tt class="OPTION">-fi</tt>, <tt class="OPTION">-fm</tt>, <tt class="OPTION">-fn</tt>, <tt class="OPTION">-fs</tt>, <tt class="OPTION">-ft</tt></td><td><tt class="LITERAL">enable_bitmapscan = off</tt>, <tt class="LITERAL">enable_hashjoin = off</tt>, <tt class="LITERAL">enable_indexscan = off</tt>, <tt class="LITERAL">enable_mergejoin = off</tt>, <tt class="LITERAL">enable_nestloop = off</tt>, <tt class="LITERAL">enable_seqscan = off</tt>, <tt class="LITERAL">enable_tidscan = off</tt></td></tr>
<tr><td><tt class="OPTION">-F</tt></td><td><tt class="LITERAL">fsync = off</tt></td></tr>
<tr><td><tt class="OPTION">-h <tt class="REPLACEABLE"><i>x</i></tt></tt></td><td><tt class="LITERAL">listen_addresses = <tt class="REPLACEABLE"><i>x</i></tt></tt></td></tr>
<tr><td><tt class="OPTION">-i</tt></td><td><tt class="LITERAL">listen_addresses = '*'</tt></td></tr>
<tr><td><tt class="OPTION">-k <tt class="REPLACEABLE"><i>x</i></tt></tt></td><td><tt class="LITERAL">unix_socket_directory = <tt class="REPLACEABLE"><i>x</i></tt></tt></td></tr>
<tr><td><tt class="OPTION">-l</tt></td><td><tt class="LITERAL">ssl = on</tt></td></tr>
<tr><td><tt class="OPTION">-N <tt class="REPLACEABLE"><i>x</i></tt></tt></td><td><tt class="LITERAL">max_connections = <tt class="REPLACEABLE"><i>x</i></tt></tt></td></tr>
<tr><td><tt class="OPTION">-O</tt></td><td><tt class="LITERAL">allow_system_table_mods = on</tt></td></tr>
<tr><td><tt class="OPTION">-p <tt class="REPLACEABLE"><i>x</i></tt></tt></td><td><tt class="LITERAL">port = <tt class="REPLACEABLE"><i>x</i></tt></tt></td></tr>
<tr><td><tt class="OPTION">-P</tt></td><td><tt class="LITERAL">ignore_system_indexes = on</tt></td></tr>
<tr><td><tt class="OPTION">-s</tt></td><td><tt class="LITERAL">log_statement_stats = on</tt></td></tr>
<tr><td><tt class="OPTION">-S <tt class="REPLACEABLE"><i>x</i></tt></tt></td><td><tt class="LITERAL">work_mem = <tt class="REPLACEABLE"><i>x</i></tt></tt></td></tr>
<tr><td><tt class="OPTION">-tpa</tt>, <tt class="OPTION">-tpl</tt>, <tt class="OPTION">-te</tt></td><td><tt class="LITERAL">log_parser_stats = on</tt>, <tt class="LITERAL">log_planner_stats = on</tt>, <tt class="LITERAL">log_executor_stats = on</tt></td></tr>
<tr><td><tt class="OPTION">-W <tt class="REPLACEABLE"><i>x</i></tt></tt></td><td><tt class="LITERAL">post_auth_delay = <tt class="REPLACEABLE"><i>x</i></tt></tt></td></tr>
</tbody>
</table>
</div>
</div>
<div>
<hr align="LEFT" width="100%">
<table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="33%" align="left" valign="top"><a href="runtime-config-developer.html" accesskey="P">后退</a></td><td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">首页</a></td><td width="33%" align="right" valign="top"><a href="user-manag.html" accesskey="N">前进</a></td></tr>
<tr><td width="33%" align="left" valign="top">开发人员选项</td><td width="34%" align="center" valign="top"><a href="runtime-config.html" accesskey="U">上一级</a></td><td width="33%" align="right" valign="top">数据库角色和权限</td></tr>
</table>
</div>
</body></html>